<template>
  <Dialog v-model="dialogVisible" title="归属商户">
    {{ sourceTenantName }}
  </Dialog>
</template>
<script lang="ts" setup>
import * as UserApi from '@/api/system/user'

defineOptions({ name: 'SystemUserAssignRoleForm' })

const dialogVisible = ref(false) // 弹窗的是否展示
const sourceTenantName = ref()

/** 打开弹窗 */
const open = async (row: UserApi.UserVO) => {
  dialogVisible.value = true
  // 设置数据
  sourceTenantName.value = row.sourceTenantName
}
defineExpose({ open }) // 提供 open 方法，用于打开弹窗
</script>
